package com.hnyfkj.jyindustry.common.config;

import org.mybatis.spring.mapper.MapperScannerConfigurer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * mybatisPlus配置
 *
 * @author 2020-04-22 zhangliang
 * @version v0.0.1
 **/
@Configuration
public class MybatisPlusConfig {
    @Bean
    public MapperScannerConfigurer mapperScannerConfigurer() {
        final MapperScannerConfigurer scannerConfigurer = new MapperScannerConfigurer();
        scannerConfigurer.setBasePackage("com.hnyfkj.**.dao");
        return scannerConfigurer;
    }
}
